/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author luciano
 */
@Entity
public class IdentificadorImovel implements Serializable{

    public IdentificadorImovel() {
    }

//    public IdentificadorImovel(Address address, Dimensao dimensao) {
//        this.address = address;
//        this.dimensao = dimensao;
//    }
    
    @Id
    @SequenceGenerator(sequenceName = "seq_identificador_imovel", name = "seq_identificador_imovel", allocationSize = 1)
    @GeneratedValue(generator = "seq_identificador_imovel", strategy = GenerationType.SEQUENCE)
    private Long id;
    
//    @OneToOne(cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE})
//    private Address address;
//    
//    @OneToOne(cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE})
//    private Dimensao dimensao;
//
//    public Address getAddress() {
//        return address;
//    }
//
//    public void setAddress(Address address) {
//        this.address = address;
//    }

//    public Dimensao getDimensao() {
//        return dimensao;
//    }

//    public void setDimensao(Dimensao dimensao) {
//        this.dimensao = dimensao;
//    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    
        
}
